(function() {
    const response = {
        data: {
            type: "page",
            title: "博客",
            body: [
                {
                    "type": "tabs",
                    "tabsMode": "sidebar",
                    "sidePosition": "left",
                    "tabs": [
                        {
                            "title":"创建",
                            "icon": "fa fa-plus",
                            "body": {
                                "type": "form",
                                "api": "post:/api/notes/create",
                                "title": "内容",
                                "body": [
                                    {
                                        "type": "input-text",
                                        "name": "title",
                                        "label": "标题",
                                        "required": true
                                    },
                                    {
                                        "type": "input-number",
                                        "name": "user_id",
                                        "label": "创建人"
                                    },
                                    {
                                        "type": "input-number",
                                        "name": "category_id",
                                        "label": "分类号"
                                    },
                                    {
                                        "name": "body",
                                        "type": "input-rich-text",
                                        "label": "内容-富文本",
                                        "value": "<p>Just do <code>IT</code></p>"
                                    }
                                ]
                            }
                        },
                        {
                            "title": "列表",
                            "body": {
                                "type": "page",
                                "title": "列表",
                                "remark": null,
                                "name": "page-demo",
                                "toolbar": [
                                    {
                                        "type": "button",
                                        "actionType": "dialog",
                                        "label": "新增",
                                        "primary": true,
                                        "dialog": {
                                            "title": "新增",
                                            "body": {
                                                "type": "form",
                                                "name": "sample-edit-form",
                                                "api": "post:/api/notes/create",
                                                "body": [
                                                    {
                                                        "type": "input-text",
                                                        "name": "title",
                                                        "label": "标题",
                                                        "required": true
                                                    },
                                                    {
                                                        "type": "textarea",
                                                        "name": "body",
                                                        "label": "摘要",
                                                        "required": true
                                                    },
                                                    {
                                                        "type": "divider"
                                                    },
                                                    {
                                                        "type": "input-number",
                                                        "name": "user_id",
                                                        "label": "创建人ID"
                                                    },
                                                    {
                                                        "type": "input-number",
                                                        "name": "category_id",
                                                        "label": "分类ID"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ],
                                "body": [
                                    {
                                        "type": "crud",
                                        "name": "sample",
                                        "api": "/api/notes/search",
                                        "filter": {
                                            "title": "",
                                            "mode": "inline",
                                            "wrapWithPanel": false,
                                            "submitText": "",
                                            "controls": [
                                                {
                                                    "type": "text",
                                                    "name": "keywords",
                                                    "placeholder": "通过关键字搜索",
                                                    "addOn": {
                                                        "label": "搜索",
                                                        "type": "submit",
                                                        "className": "btn-success"
                                                    },
                                                    "clearable": true
                                                }
                                            ],
                                            "className": "m-b-sm"
                                        },
                                        "bulkActions": [
                                            {
                                                "label": "批量修改",
                                                "type": "button",
                                                "actionType": "dialog",
                                                "level": "primary",
                                                "dialog": {
                                                    "title": "批量编辑",
                                                    "name": "sample-bulk-edit",
                                                    "body": {
                                                        "type": "form",
                                                        "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2",
                                                        "controls": [
                                                            {
                                                                "type": "text",
                                                                "name": "engine",
                                                                "label": "Engine"
                                                            }
                                                        ]
                                                    }
                                                }
                                            },
                                            {
                                                "label": "批量删除",
                                                "type": "button",
                                                "level": "danger",
                                                "actionType": "ajax",
                                                "api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$ids",
                                                "confirmText": "确定要批量删除?"
                                            }
                                        ],
                                        "columns": [
                                            {
                                                "name": "id",
                                                "label": "ID",
                                                "width": 20,
                                                "sortable": true
                                            },
                                            {
                                                "name": "title",
                                                "label": "标题",
                                                "sortable": true
                                            },
                                            {
                                                "name": "body",
                                                "label": "内容",
                                                "sortable": true
                                            },
                                            {
                                                "name": "category_id",
                                                "label": "分类"
                                            },
                                            {
                                                "name": "user_id",
                                                "label": "创建人"
                                            },
                                            {
                                                "name": "ctime",
                                                "label": "创建时间",
                                                "type": "static-date",
                                                "format": "YYYY年MM月DD日 HH时mm分ss秒"
                                            },
                                            {
                                                "name": "mtime",
                                                "label": "修改时间",
                                                "type": "static-date",
                                                "format": "YYYY年MM月DD日 HH时mm分ss秒"
                                            },
                                            {
                                                "type": "operation",
                                                "label": "操作",
                                                "width": "",
                                                "buttons": [
                                                    {
                                                        "type": "button-group",
                                                        "buttons": [
                                                            {
                                                                "type": "button",
                                                                "label": "查看",
                                                                "level": "primary",
                                                                "actionType": "link",
                                                                "link": "/crud/${id}"
                                                            },
                                                            {
                                                                "type": "button",
                                                                "label": "修改",
                                                                "level": "info",
                                                                "actionType": "link",
                                                                "link": "/crud/${id}/edit"
                                                            },
                                                            {
                                                                "type": "button",
                                                                "label": "删除",
                                                                "level": "danger",
                                                                "actionType": "ajax",
                                                                "confirmText": "您确认要删除?",
                                                                "api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
                                                            }
                                                        ]
                                                    }
                                                ],
                                                "placeholder": "-",
                                                "fixed": "right"
                                            }
                                        ],
                                        "affixHeader": true,
                                        "columnsTogglable": "auto",
                                        "placeholder": "暂无数据",
                                        "tableClassName": "table-db table-striped",
                                        "headerClassName": "crud-table-header",
                                        "footerClassName": "crud-table-footer",
                                        "toolbarClassName": "crud-table-toolbar",
                                        "combineNum": 0,
                                        "bodyClassName": "panel-default"
                                    }
                                ]
                            },
                            "icon": "fa fa-list-ul"
                        },
                        {
                            "title": "分类",
                            "body": "分类页",
                            "icon": "fa fa-folder-tree"
                        }
                    ]
                }
            ]
        },
        status: 0
    }

    window.jsonpCallback && window.jsonpCallback(response);
})();
